package com.googlecode.javatools.classparser.types.impl;

import java.util.Collection;

import com.googlecode.javatools.classparser.types.FieldInfo;

public class FieldInfoImpl implements FieldInfo
{
	private final boolean isAbstract;
	private final boolean isPublic;
	private final String fieldOrMethodName;
	private final Collection<String> types;

	public FieldInfoImpl(final boolean isAbstract, final boolean isPublic, final String fieldName,
			final Collection<String> types)
	{
		this.isAbstract = isAbstract;
		this.isPublic = isPublic;
		this.fieldOrMethodName = fieldName;
		this.types = types;
	}

	public boolean isAbstract()
	{
		return isAbstract;
	}

	public boolean isPublic()
	{
		return isPublic;
	}

	public String name()
	{
		return fieldOrMethodName;
	}

	public Collection<String> types()
	{
		return types;
	}

}
